<?php
declare(strict_types=1);

Class c_test extends Control
{
	public function index()
	{
        $timestamp = '20240312063024';
        $date_time = substr($timestamp,0,4) . '-' . substr($timestamp,4,2) . '-' . substr($timestamp,6,2) . ' ' . substr($timestamp,8,2) . ':' . substr($timestamp,10,2) . ':' . substr($timestamp,12,2);
        $data['time'] = strtotime($date_time);
        echo $date_time.'<br>';
        echo $data['time'];
	}
    public function test1()
    {
        $a = array(
            array(
            'id' => 5698,
            'first_name' => 'Bill',
            'last_name' => 'Gates',
            ),
            array(
            'id' => 4767,
            'first_name' => 'Steve',
            'last_name' => 'Jobs',
            ),
            array(
            'id' => 3809,
            'first_name' => 'Mark',
            'last_name' => 'Zuckerberg',
            )
        );
        $res_a = array_column($a, 'last_name','id');
        echo '<pre>';print_r($res_a);
    }
}